package com.gusha.dao;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.gusha.model.InfoContent;
import com.gusha.model.SysComment;

@Repository
public interface SysCommentDao extends JpaRepository<SysComment,BigInteger>,JpaSpecificationExecutor<SysComment> {

	@Query(value="select sy from SysComment sy where sy.contentId=?1")
	List<SysComment> findAllByContentId(InfoContent info);

}
